#include<iostream>
#include<fstream>

int main()
{
	int count = 0;
	char ch;
	std::ifstream is;
	is.open("Alpha.txt");
	if (!is.is_open())
		std::cout << "Fail to open file" << std::endl;
	while (is >> ch)
	{
		if (isalpha(ch))
			++count;
	}
	std::cout << "File totally has words: " << count << std::endl;
	return 0;
}